<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String gameId = request.getParameter("gameId");
%>

<script type="text/javascript">

    var jsToFlex = {};
    jsToFlex.jsGetGameId = function () {
        return "<%=gameId%>";
    }
</script>

<script language="JavaScript" type="text/javascript">
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Minor version of Flash required
    var requiredRevision = 124;
</script>

<script language="JavaScript" type="text/javascript">
    // Version check based upon the values entered above in "Globals"
    var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);


    // Check to see if the version meets the requirements for playback
    if (hasRequestedVersion) {  // if we've detected an acceptable version
        // if we've detected an acceptable version
        // embed the Flash Content SWF when all tests are passed
        AC_FL_RunContent(
                "src", "Tzaar",
                "width", "800",
                "height", "800",
                "align", "middle",
                "id", "Tzaar",
                "quality", "high",
                "bgcolor", "#C0C0C0",
                "name", "Tzaar",
                "allowScriptAccess", "sameDomain",
                "type", "application/x-shockwave-flash",
                "pluginspage", "http://www.adobe.com/go/getflashplayer"
                );
    } else {  // flash is too old or we can't detect the plugin
        var alternateContent = 'Alternate HTML content should be placed here. '
                + 'This content requires the Adobe Flash Player. '
                + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
        document.write(alternateContent);  // insert non-flash content
    }
</script>
<noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
            id="Tzaar" width="800" height="800"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
        <param name="movie" value="Tzaar.swf"/>
        <param name="quality" value="high"/>
        <param name="bgcolor" value="#C0C0C0"/>
        <param name="allowScriptAccess" value="sameDomain"/>
        <embed src="Tzaar.swf" quality="high" bgcolor="#C0C0C0"
               width="800" height="800" name="Tzaar" align="middle"
               play="true"
               loop="false"
               quality="high"
               allowScriptAccess="sameDomain"
               type="application/x-shockwave-flash"
               pluginspage="http://www.adobe.com/go/getflashplayer">
        </embed>
    </object>
</noscript>
